package cjakma.study.portfolio.pofol.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;

import cjakma.study.portfolio.pofol.dao.PortfolioDAO;
import cjakma.study.portfolio.pofol.service.PortfolioService;
import cjakma.study.portfolio.pofol.vo.RequestVO;
import cjakma.study.portfolio.pofol.vo.ResponseVO;

@Service
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class PortfolioServiceImpl implements PortfolioService {
	
	@Autowired
	private PortfolioDAO portfolioDAO;
	
	
	/**
	 * 0. setTest
	 * POST - setTest : {context}/setTest
	 * @param vo
	 * @return successYn
	 * @throws Exception
	 */
	public ResponseVO setTest(RequestVO request) {
		System.out.println("ServiceImpl");
		return portfolioDAO.setTest(request);
	}
	
	/*
	public ResponseVO chkRequestPrice(RequestVO request) throws Exception {
		return PortfolioDao.chkRequestPrice(request);
	}
	
	public List<ResponseVO> loadCallHistory(RequestVO request) throws Exception {
		return PortfolioDao.loadCallHistory(request);
	}
	*/
}